package whf.framework.mail.service;

import java.util.List;

import whf.framework.exception.FindException;
import whf.framework.exception.UpdateException;
import whf.framework.mail.entity.IMailBO;
import whf.framework.mail.entity.Mail;
import whf.framework.mail.exception.MailSendException;
import whf.framework.service.Service;

/**
 * 发送邮件的服务
 * @author wanghaifeng
 * @create Oct 18, 2006 10:24:19 PM
 * 
 */
public interface MailService extends Service<Mail> {

	/**
	 * 发送邮件服务
	 * @modify wanghaifeng Oct 18, 2006 10:30:57 PM
	 * @param mail
	 */
	public void send(IMailBO mail) throws MailSendException, UpdateException;
	
	/**
	 * 搜索没有发送的邮件
	 * @modify wanghaifeng Oct 19, 2006 10:27:16 AM
	 * @return
	 * @throws FindException
	 */
	public List<Mail> findNotSentMails() throws FindException;
}
